<script setup>


</script>

<template>
  <div class="body-content">
    <!-- 第一行 -->
    <div>
      <div class="title">
        模型实时监测
      </div>
      <div class="line">
        <el-steps :active="4" align-center>
        <el-step title="检测参数设置"/>
        <el-step title="实时检测"/>
        <el-step title="检测记录"/>
      </el-steps>
      </div>
    </div>
    <!-- 第二行 -->
    <div>
      <el-row style="display: flex; justify-content: space-between;">
        <div class="first-box" style="order: 0; width: 300px;!important">
          <div class="box-title">
            1.检测参数设置
          </div>
        <div >
        <div style="margin:20px 30px;">
                <span>数据集选择：</span>
                <select class="model-select">
                <option value="cyclegan" selected>Vgg</option>
                <option value="cyclegan" >resnet</option>
                <option value="cyclegan" >vit</option>
                <option value="cyclegan" >KolektorSDD2</option>
                </select>
              </div>
              <div style="margin:40px 30px;">
                  <span>检测模型选择：</span>
                <select class="model-select">
                  <option value="cyclegan" selected>Agg</option>
                  <option value="cyclegan" >AAPD</option>
                  <option value="cyclegan" >KolektorSDD</option>
                  <option value="cyclegan" >MTD</option>
                </select>
              </div>
        </div>
        <div style="margin-left: 80px;">
         <el-button type="" size="big">开始检测</el-button>
        </div>
       </div>
  

        <!-- 第三行 -->
        <div class="third-box">
          <div class="box-title">
            2、实时检测
          </div>  
          <div class="box-blue2">
              <div class="inner-button2">
                <img src="@/assets/test.png" style="height: 220px; width: 600px;" alt="">
              </div>
          </div>
          <div class="box-title" style="margin: 5px;">
            检测图像展示
          </div>
       </div>
      </el-row>
    </div>
    <!-- 第三行 -->
    <div>
      <el-row style="flex">
        

        <!-- 第五个 -->
        <div class="third-box">
        <div class="box-title">
          3. 检测记录
        </div>
        <div class="detailed-content">
          <!-- 左侧部分，占据2/5 -->
          <div class="left-content">
            <div style="height: 240px; width: 360px; border: 1px solid black; margin: 20px 120px; padding: 10px; display: flex; flex-direction: column; align-items: center;">
              <div style="margin-bottom: 10px;">记录查询</div>
              <div style="margin-bottom: 30px; display: flex; align-items: center;">
                  <span style="margin-right: 10px;">开始时间</span>
                  <input style="width: 150px;">
              </div>
              <div style="margin-bottom: 40px; display: flex; align-items: center;">
                  <span style="margin-right: 10px;">结束时间</span>
                  <input style="width: 150px;">
              </div>
              <div style="margin-left: 0px;">
                  <el-button type="" size="big">开始查询</el-button>
              </div>
          </div>
          <div style="height: 220px; width: 360px; border: 1px solid black; margin: 20px 120px; padding: 10px; display: flex; flex-direction: column; align-items: center;">
              <div style="margin-bottom: 10px;">检测数据</div>
              <div style="margin-bottom: 10px; display: flex; align-items: center;">
                  <span style="margin-right: 10px;">检测图像：</span>
                  2500
              </div>
              <div style="margin-bottom: 10px; display: flex; align-items: center;">
                  <span style="margin-right: 10px;">缺陷图像：</span>
                  150
              </div>
              <div style="margin-bottom: 10px; display: flex; align-items: center;">
                  <span style="margin-right: 10px;">产品合格率：</span>
                  98%
              </div>
          </div>
          </div>
          <!-- 右侧部分，占据3/5 -->
          <div class="right-content">
            <div>
              <div class="third-box">
          <div class="box-title">
            合格率总图
          </div>  
          <div class="box-blue2" style="height: 150px; width: 700px;background-color: #fff;margin: 10px;padding: 10px;"> 
              <div class="inner-button2" >
                <img src="@/assets/test3.png" style="height: 150px; width: 700px;" alt="">
              </div>
          </div>
          <div class="box-title" style="margin: 1px;">
            日期
          </div>
       </div>
            </div>
           <div style="margin:10px; 
  border: gray solid 1px;">
             <!-- 第一行，水平居中显示的图像生成记录 -->
             <div class="box-title">
              检测记录表
            </div>
            <!-- 表格 -->
            <table class="image-table">
              <thead>
                <tr class="deep-blue-row">
                  <th>序号</th>
                  <th>图像名称</th>
                  <th>检测结果</th>
                  <th>缺陷类型</th>
                  <th>检测时间</th>
                </tr>
              </thead>
              <tbody>
                <!-- 三行空着 -->
                <tr></tr>
                <tr></tr>
                <tr></tr>
                <!-- 表头为蓝色，下面一行蓝色一行白色的间隔颜色，内容为空 -->
                <tr class="blue-row">
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                </tr>
                <tr class="white-row">
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                </tr>
                <tr class="blue-row">
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                </tr>
                <tr class="white-row">
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                </tr>
                
              </tbody>
            </table>
           </div>
          </div>
        </div>
      </div>
      </el-row>
    </div>
  </div>
</template>
<style scoped>
.body-content{
  /* max-height: calc(100vh - 90px); */
}
.title{
  font-size: 19px;
  font-weight: 400;
  margin:10px
}
.line{
  margin-bottom: 1px;
}
::v-deep .el-step__head.is-finish {
    color: #1a1b1d;
    border-color: #2a2c2f;
}
::v-deep .el-step__title.is-finish {
  color: #1a1b1d;
}
.box-title{
  font-size: 16px;
  font-weight: 600;
  margin:10px;
  text-align:center
}
.first-box{
  border: gray solid 1px;
  /* min-width: 300px; */
  margin:15px; 
}
.box-blue {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #5b9bd5;
  width: 200px;
  height: 200px;
  margin: 10px 40px;
}
.box-blue2 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #5b9bd5;
  width: 400px;
  height: 200px;
  margin: 10px 40px;
}


.inner-button {
  width: 60px;
  height: 30px;
  background-color: aliceblue;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inner-button2{
  color: white;
  font-size: 30px;
}
.second-box{
  margin:15px; 
  border: gray solid 1px;
  /* min-width: 300px; */
}
.input-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.label {
  margin-right: 10px; 
}

.input-box {
  justify-content: center;
  align-items: center;
  display: flex;
  align-items: center;
  margin-left: 40px;
}

.input-field {
  width: 100px; /* 根据需要调整宽度 */
  padding: 5px;
  height: 25px;
  box-sizing: border-box;
  text-align: center;
}
.input-field2 {
  width: 40px; /* 根据需要调整宽度 */
  padding: 5px;
  height: 25px;
  box-sizing: border-box;
  text-align: center;
  margin-right:5px
}
  .input-field3 {
  width: 50px; /* 根据需要调整宽度 */
  padding: 5px;
  height: 25px;
  box-sizing: border-box;
  text-align: center;
  margin-left: 5px;
  }
.laber{
  margin-left: 35px;
}
.third-box{
  margin:10px; 
  border: gray solid 1px;
  /* min-width: 600px; */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.begin{
  border: black solid 1px;;
  width: 80px;
  height: 30px;
  background-color: aliceblue;
  display: flex;
  justify-content: center;
  text-align:center;
  left: 50%;
  
}

.row-container {
  display: flex;
  justify-content: space-between;
  margin: 0 -10px; /* 调整整体的 margin */
}


.second-box,
.third-box {
  flex: 1;
  margin:  10px; /* 调整每个盒子的 margin */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.generation-options {
  display: flex;
  align-items: center;
}

.model-select {
  margin-right: 10px; /* 调整下拉框与按钮之间的间距 */
}

/* .begin {
  border: 1px solid black;
  padding: 5px 10px;
  cursor: pointer;
  background-color: aliceblue;
} */
.third-box {
  margin: 15px;
  border: gray solid 1px;
  min-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detailed-content {
  display: flex;
  width: 100%;
}

.left-content {
  width: 40%; /* 占据2/5 */
}

.right-content {
  width: 60%; /* 占据3/5 */
}



.image-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

th, td {
  border: 1px solid white;
  text-align: center;
  padding: 8px;
}

.deep-blue-row {
  background-color: #5b9bd5;
  color: white;
  height: 30px; 
}
.blue-row {
  background-color: #d2deef;
  color: white;
  height: 30px; 
}

.white-row {
  background-color: white;
  height: 30px; 
}

.action-buttons {
  display: flex;
  justify-content: right;
}

.delete-button,
.addToDatabase-button {
  border: 1px solid black;
  padding: 5px 10px;
  cursor: pointer;
  background-color: aliceblue;
  margin:10px;
}
</style>
